package com.yuanchu.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.goods.dto.EditGoodsCategoryDto;
import com.yuanchu.goods.dto.GoodsCategoryParamsDto;
import com.yuanchu.goods.entity.YoshopCategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品分类表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 02:17:43
 */
public interface YoshopCategoryService extends IService<YoshopCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询商品分类
     * @param params
     * @return
     */
    List<YoshopCategoryEntity> queryGoodsCategory(Map<String, Object> params);

    /**
     * 添加商品分类
     * @param goodsCategory
     */
    void addGoodsCategory(GoodsCategoryParamsDto goodsCategory, Integer storeId);

    /**
     * 修改商品分类
     * @param goodsCategoryParams
     */
    void editGoodsCategory(EditGoodsCategoryDto goodsCategoryParams, int storeId);

    /**
     * 删除商品分类
     * @param categoryId
     */
    void deleteGoodsCategoryById(Integer categoryId, int storeId);

    boolean updateGoodsCategoryState(EditGoodsCategoryDto goodsCategoryParams);
}

